// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_fetchaccounts
// * CreateDate    : 2014-06-05 18:29:57
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:57
// * LastChanger   : 2014-06-05 18:29:57
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmFetchaccountsEntity : EntityBase
    {
        public HmFetchaccountsTable TableSchema
        {
            get
            {
                return HmFetchaccountsTable.Current;
            }
		}
		
		public HmFetchaccountsEntity()
        {

        }
		
		public HmFetchaccountsEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Faid = Convert.ToInt32(CommonFunctions.ToObject(dr["faid"]));
			this.Faactive = Convert.ToByte(CommonFunctions.ToObject(dr["faactive"]));
			this.Faaccountid = Convert.ToInt32(CommonFunctions.ToObject(dr["faaccountid"]));
			this.Faaccountname = Convert.ToString(CommonFunctions.ToObject(dr["faaccountname"]));
			this.Faserveraddress = Convert.ToString(CommonFunctions.ToObject(dr["faserveraddress"]));
			this.Faserverport = Convert.ToInt32(CommonFunctions.ToObject(dr["faserverport"]));
			this.Faservertype = Convert.ToByte(CommonFunctions.ToObject(dr["faservertype"]));
			this.Fausername = Convert.ToString(CommonFunctions.ToObject(dr["fausername"]));
			this.Fapassword = Convert.ToString(CommonFunctions.ToObject(dr["fapassword"]));
			this.Faminutes = Convert.ToInt32(CommonFunctions.ToObject(dr["faminutes"]));
			this.Fanexttry = Convert.ToDateTime(CommonFunctions.ToObject(dr["fanexttry"]));
			this.Fadaystokeep = Convert.ToInt32(CommonFunctions.ToObject(dr["fadaystokeep"]));
			this.Falocked = Convert.ToByte(CommonFunctions.ToObject(dr["falocked"]));
			this.Faprocessmimerecipients = Convert.ToByte(CommonFunctions.ToObject(dr["faprocessmimerecipients"]));
			this.Faprocessmimedate = Convert.ToByte(CommonFunctions.ToObject(dr["faprocessmimedate"]));
			this.Fausessl = Convert.ToByte(CommonFunctions.ToObject(dr["fausessl"]));
			this.Fauseantispam = Convert.ToByte(CommonFunctions.ToObject(dr["fauseantispam"]));
			this.Fauseantivirus = Convert.ToByte(CommonFunctions.ToObject(dr["fauseantivirus"]));
			this.Faenablerouterecipients = Convert.ToByte(CommonFunctions.ToObject(dr["faenablerouterecipients"]));
        }
		
		public HmFetchaccountsEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Faid = Convert.ToInt32(CommonFunctions.ToObject(dr["faid"]));
			this.Faactive = Convert.ToByte(CommonFunctions.ToObject(dr["faactive"]));
			this.Faaccountid = Convert.ToInt32(CommonFunctions.ToObject(dr["faaccountid"]));
			this.Faaccountname = Convert.ToString(CommonFunctions.ToObject(dr["faaccountname"]));
			this.Faserveraddress = Convert.ToString(CommonFunctions.ToObject(dr["faserveraddress"]));
			this.Faserverport = Convert.ToInt32(CommonFunctions.ToObject(dr["faserverport"]));
			this.Faservertype = Convert.ToByte(CommonFunctions.ToObject(dr["faservertype"]));
			this.Fausername = Convert.ToString(CommonFunctions.ToObject(dr["fausername"]));
			this.Fapassword = Convert.ToString(CommonFunctions.ToObject(dr["fapassword"]));
			this.Faminutes = Convert.ToInt32(CommonFunctions.ToObject(dr["faminutes"]));
			this.Fanexttry = Convert.ToDateTime(CommonFunctions.ToObject(dr["fanexttry"]));
			this.Fadaystokeep = Convert.ToInt32(CommonFunctions.ToObject(dr["fadaystokeep"]));
			this.Falocked = Convert.ToByte(CommonFunctions.ToObject(dr["falocked"]));
			this.Faprocessmimerecipients = Convert.ToByte(CommonFunctions.ToObject(dr["faprocessmimerecipients"]));
			this.Faprocessmimedate = Convert.ToByte(CommonFunctions.ToObject(dr["faprocessmimedate"]));
			this.Fausessl = Convert.ToByte(CommonFunctions.ToObject(dr["fausessl"]));
			this.Fauseantispam = Convert.ToByte(CommonFunctions.ToObject(dr["fauseantispam"]));
			this.Fauseantivirus = Convert.ToByte(CommonFunctions.ToObject(dr["fauseantivirus"]));
			this.Faenablerouterecipients = Convert.ToByte(CommonFunctions.ToObject(dr["faenablerouterecipients"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmFetchaccountsTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Faid
        {
            get { return Convert.ToInt32(GetData(HmFetchaccountsTable.C_faid)); }
            set { SetData(HmFetchaccountsTable.C_faid, value); }
        }
		
        [DataMember]
        public byte Faactive
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_faactive)); }
            set { SetData(HmFetchaccountsTable.C_faactive, value); }
        }
		
        [DataMember]
        public int Faaccountid
        {
            get { return Convert.ToInt32(GetData(HmFetchaccountsTable.C_faaccountid)); }
            set { SetData(HmFetchaccountsTable.C_faaccountid, value); }
        }
		
        [DataMember]
        public string Faaccountname
        {
            get { return Convert.ToString(GetData(HmFetchaccountsTable.C_faaccountname)); }
            set { SetData(HmFetchaccountsTable.C_faaccountname, value); }
        }
		
        [DataMember]
        public string Faserveraddress
        {
            get { return Convert.ToString(GetData(HmFetchaccountsTable.C_faserveraddress)); }
            set { SetData(HmFetchaccountsTable.C_faserveraddress, value); }
        }
		
        [DataMember]
        public int Faserverport
        {
            get { return Convert.ToInt32(GetData(HmFetchaccountsTable.C_faserverport)); }
            set { SetData(HmFetchaccountsTable.C_faserverport, value); }
        }
		
        [DataMember]
        public byte Faservertype
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_faservertype)); }
            set { SetData(HmFetchaccountsTable.C_faservertype, value); }
        }
		
        [DataMember]
        public string Fausername
        {
            get { return Convert.ToString(GetData(HmFetchaccountsTable.C_fausername)); }
            set { SetData(HmFetchaccountsTable.C_fausername, value); }
        }
		
        [DataMember]
        public string Fapassword
        {
            get { return Convert.ToString(GetData(HmFetchaccountsTable.C_fapassword)); }
            set { SetData(HmFetchaccountsTable.C_fapassword, value); }
        }
		
        [DataMember]
        public int Faminutes
        {
            get { return Convert.ToInt32(GetData(HmFetchaccountsTable.C_faminutes)); }
            set { SetData(HmFetchaccountsTable.C_faminutes, value); }
        }
		
        [DataMember]
        public DateTime Fanexttry
        {
            get { return Convert.ToDateTime(GetData(HmFetchaccountsTable.C_fanexttry)); }
            set { SetData(HmFetchaccountsTable.C_fanexttry, value); }
        }
		
        [DataMember]
        public int Fadaystokeep
        {
            get { return Convert.ToInt32(GetData(HmFetchaccountsTable.C_fadaystokeep)); }
            set { SetData(HmFetchaccountsTable.C_fadaystokeep, value); }
        }
		
        [DataMember]
        public byte Falocked
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_falocked)); }
            set { SetData(HmFetchaccountsTable.C_falocked, value); }
        }
		
        [DataMember]
        public byte Faprocessmimerecipients
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_faprocessmimerecipients)); }
            set { SetData(HmFetchaccountsTable.C_faprocessmimerecipients, value); }
        }
		
        [DataMember]
        public byte Faprocessmimedate
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_faprocessmimedate)); }
            set { SetData(HmFetchaccountsTable.C_faprocessmimedate, value); }
        }
		
        [DataMember]
        public byte Fausessl
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_fausessl)); }
            set { SetData(HmFetchaccountsTable.C_fausessl, value); }
        }
		
        [DataMember]
        public byte Fauseantispam
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_fauseantispam)); }
            set { SetData(HmFetchaccountsTable.C_fauseantispam, value); }
        }
		
        [DataMember]
        public byte Fauseantivirus
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_fauseantivirus)); }
            set { SetData(HmFetchaccountsTable.C_fauseantivirus, value); }
        }
		
        [DataMember]
        public byte Faenablerouterecipients
        {
            get { return Convert.ToByte(GetData(HmFetchaccountsTable.C_faenablerouterecipients)); }
            set { SetData(HmFetchaccountsTable.C_faenablerouterecipients, value); }
        }
		
		#endregion
	}
	
	
}	

